package.path = package.path .. ";../../lua_libs/?.lua;../lua_libs/?.lua"

local logger = require "logger"


service_id = -1

function OnInit(id)
    logger.Info("main OnInit id: %s", id)
    service_id = id

    local gateway = Lua2Cpp.NewService("gateway");
    if gateway < 0 then
        logger.Error("Lua2Cpp.NewService error, %s", debug.traceback())
        return
    end

end

function OnExit()
    logger.Info("main OnExit, id:%s", service_id)
end